<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-CN">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">



  
  
    
      
    
    
      
    
  <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
  <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
    
  
  <link href="//cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet" type="text/css">







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="MATLAB,">





  <link rel="alternate" href="/blog/atom.xml" title="二货严の博客" type="application/atom+xml">






<meta name="description" content="MATLAB程序设计实验报告 No.2(二、三章习题)">
<meta name="keywords" content="MATLAB">
<meta property="og:type" content="article">
<meta property="og:title" content="MATLAB实验报告（二）">
<meta property="og:url" content="https://erhuoyan.gitee.io/blog/blog/3a97/index.html">
<meta property="og:site_name" content="二货严の博客">
<meta property="og:description" content="MATLAB程序设计实验报告 No.2(二、三章习题)">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="https://i.loli.net/2018/12/04/5c05ed462a994.png">
<meta property="og:image" content="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/1.png">
<meta property="og:image" content="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/2.png">
<meta property="og:image" content="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/3.png">
<meta property="og:image" content="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/4.png">
<meta property="og:updated_time" content="2019-03-06T04:23:55.726Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MATLAB实验报告（二）">
<meta name="twitter:description" content="MATLAB程序设计实验报告 No.2(二、三章习题)">
<meta name="twitter:image" content="https://i.loli.net/2018/12/04/5c05ed462a994.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Mist',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://erhuoyan.gitee.io/blog/blog/3a97/">


 
   <script> 
   (function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/0f81ff2f.js","daovoice") 
   daovoice('init', { 
      app_id: "7da5cee4" 
      }); 
   daovoice('update'); 
   </script> 


<script>
    (function(){
        if(''){
            if (prompt('请输入文章密码') !== ''){
                alert('密码错误！请询问博主大人！');
                history.back();
            }
        }
    })();
</script>




  <title>MATLAB实验报告（二） | 二货严の博客</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-CN">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <a href="https://github.com/erhuoyan" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewbox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">二货严の博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">此后吾之剑与汝同在，汝之命运与吾共存。</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://erhuoyan.gitee.io/blog/blog/blog/3a97/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="耿严">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/backgroung.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="二货严の博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">MATLAB实验报告（二）</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建时间" itemprop="dateCreated datePublished" datetime="2018-12-04T18:39:10+08:00">
                2018-12-04
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/实验报告/" itemprop="url" rel="index">
                    <span itemprop="name">实验报告</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          
             <span id="/blog/blog/3a97/" class="leancloud_visitors" data-flag-title="MATLAB实验报告（二）">
               <span class="post-meta-divider">|</span>
               <span class="post-meta-item-icon">
                 <i class="fa fa-eye"></i>
               </span>
               
                 <span class="post-meta-item-text">Visitors&#58;</span>
               
                 <span class="leancloud-visitors-count"></span>
             <span>℃</span>
	     </span>
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv">本文总阅读量
            <span class="busuanzi-value" id="busuanzi_value_page_pv"></span>次
            </span>
          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Words count in article&#58;</span>
                
                <span title="Words count in article">
                  917 字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Reading time &asymp;</span>
                
                <span title="Reading time">
                  5 分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><br>&emsp;<font size="4" face="宋体">学号 <u>Z11714047&emsp;&emsp;&emsp;</u>&emsp;专业<u> &emsp;自动化&emsp;&emsp;&emsp;&emsp;</u>&emsp;姓名<u>&emsp;耿严&emsp;&emsp;&emsp;&emsp;&emsp;</u></font><br></p>
<p><br>&emsp;<font size="4" face="宋体">实验日期 <u>&emsp;&emsp;&emsp;&ensp;&emsp;&emsp;</u>&emsp;指导教师<u> &emsp;章军&emsp;&emsp;&emsp;</u>&emsp;实验成绩<u>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</u></font><br></p>
<p><br><center><img src="https://i.loli.net/2018/12/04/5c05ed462a994.png" alt="1"></center><br></p>
<h3 id="安徽大学电气工程及自动化学院本科实验报告"><a href="#安徽大学电气工程及自动化学院本科实验报告" class="headerlink" title="安徽大学电气工程及自动化学院本科实验报告"></a><br><center><font face="华文新魏">安徽大学电气工程及自动化学院本科实验报告</font></center></h3><h4 id="ensp-【课程名称】-emsp-Matlab程序设计-emsp-emsp-emsp-emsp"><a href="#ensp-【课程名称】-emsp-Matlab程序设计-emsp-emsp-emsp-emsp" class="headerlink" title="&ensp;【课程名称】&emsp;Matlab程序设计&emsp;&emsp;&emsp;&emsp;"></a>&ensp;<font face="Microsoft JhengHei">【课程名称】<u>&emsp;Matlab程序设计&emsp;&emsp;&emsp;&emsp;</u></font></h4><h4 id="ensp-【课程目标】-（依据教学大纲）"><a href="#ensp-【课程目标】-（依据教学大纲）" class="headerlink" title="&ensp;【课程目标】 （依据教学大纲）"></a>&ensp;<font face="Microsoft JhengHei">【课程目标】</font> <font face="宋体" size="2">（依据教学大纲）</font></h4><h4 id="ensp-【实验名称】-emsp-Matlab环境和函数-emsp-emsp-emsp-emsp"><a href="#ensp-【实验名称】-emsp-Matlab环境和函数-emsp-emsp-emsp-emsp" class="headerlink" title="&ensp;【实验名称】&emsp;Matlab环境和函数&emsp;&emsp;&emsp;&emsp;"></a>&ensp;<font face="Microsoft JhengHei">【实验名称】<u>&emsp;Matlab环境和函数&emsp;&emsp;&emsp;&emsp;</u></font></h4><h4 id="ensp-【实验目的】"><a href="#ensp-【实验目的】" class="headerlink" title="&ensp;【实验目的】"></a>&ensp;<font face="Microsoft JhengHei">【实验目的】</font></h4><p>&emsp;&emsp;1. 练习掌握MATLAB实用教程（第二版）书中第二至三章函数</p>
<h4 id="ensp-【实验原理及方法】"><a href="#ensp-【实验原理及方法】" class="headerlink" title="&ensp;【实验原理及方法】"></a>&ensp;<font face="Microsoft JhengHei">【实验原理及方法】</font></h4><p>&emsp;&emsp;1. 使用MATLAB或Octave软件完成书上习题</p>
<h4 id="ensp-【实验内容及过程】"><a href="#ensp-【实验内容及过程】" class="headerlink" title="&ensp;【实验内容及过程】"></a>&ensp;<font face="Microsoft JhengHei">【实验内容及过程】</font></h4><ul>
<li>内容：</li>
</ul>
<p>&emsp;&emsp;书上2.1, 2.2, 2.3,2.4, 2.7,2.11, 2.15, 2.16, 2.17, 3.1, 3.2, 3.4, 3.8, 3.9, 3.10, 3.13, 3.14, 3.15, 3.17, 3.18, 3.20</p>
<ul>
<li>过程</li>
</ul>
<figure class="highlight matlab"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">% 2.1</span></span><br><span class="line">ans2_1_1= <span class="number">1</span>+<span class="number">3</span>/<span class="number">4</span>;</span><br><span class="line">ans2_1_2= <span class="number">5</span>*<span class="number">6</span>*<span class="number">4</span>/<span class="number">2</span>;</span><br><span class="line">ans2_1_3= <span class="number">5</span>/<span class="number">2</span>*<span class="number">6</span>*<span class="number">4</span>;</span><br><span class="line">ans2_1_4= <span class="number">5</span>^<span class="number">2</span>*<span class="number">3</span>;</span><br><span class="line">ans2_1_5= <span class="number">5</span>^(<span class="number">2</span>*<span class="number">3</span>);</span><br><span class="line">ans2_1_6= <span class="number">1</span> + <span class="number">3</span> + <span class="number">5</span>/<span class="number">5</span> +<span class="number">3</span> +<span class="number">1</span>;</span><br><span class="line">ans2_1_7= (<span class="number">1</span> + <span class="number">3</span> + <span class="number">5</span>)*(<span class="number">5</span> + <span class="number">3</span> + <span class="number">1</span>);</span><br><span class="line">ans2_1 = [ans2_1_1, ans2_1_2, ans2_1_3, ans2_1_4, ans2_1_5, ans2_1_6, ans2_1_7]</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.2</span></span><br><span class="line">isvarname fred;</span><br><span class="line">isvarname fred!;</span><br><span class="line">isvarname book_1;</span><br><span class="line">isvarname book<span class="number">-1</span>;</span><br><span class="line">isvarname <span class="number">2</span>ndplac;</span><br><span class="line">isvarname Second_Place;</span><br><span class="line">isvarname <span class="string">'#1'</span>;</span><br><span class="line">isvarname No_1;</span><br><span class="line">isvarname vel_5;</span><br><span class="line">isvarname vel<span class="number">.5</span>;</span><br><span class="line">isvarname <span class="built_in">tan</span>;</span><br><span class="line">isvarname <span class="keyword">while</span>;</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.3</span></span><br><span class="line">ans2_3_1 = <span class="number">5</span>^<span class="number">2</span>;</span><br><span class="line">ans2_3_2 = (<span class="number">5</span>+<span class="number">3</span>)/(<span class="number">5.</span>*<span class="number">6</span>);</span><br><span class="line">ans2_3_3 = (<span class="number">4</span> + <span class="number">6</span>^<span class="number">3</span>)^(<span class="number">1</span>/<span class="number">2</span>);</span><br><span class="line">ans2_3_4 = (<span class="number">9</span> + <span class="number">6</span>/<span class="number">12</span>)+<span class="number">7.</span>*<span class="number">5</span>^(<span class="number">3</span>+<span class="number">2</span>);</span><br><span class="line">ans2_3_5 = <span class="number">1</span> + <span class="number">5.</span>*<span class="number">3</span>/<span class="number">6</span>^<span class="number">2</span> + <span class="number">2</span>^(<span class="number">2</span><span class="number">-4</span>).*<span class="number">1</span>/<span class="number">5.5</span>;</span><br><span class="line">ans2_2 = [ans2_3_1, ans2_3_2, ans2_3_3, ans2_3_4, ans2_3_5]</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.4 (a)</span></span><br><span class="line">r1 =  <span class="number">5</span>;</span><br><span class="line">s1 = <span class="built_in">pi</span> * r1^<span class="number">2</span>;</span><br><span class="line"><span class="comment">% 2.4 (b)</span></span><br><span class="line">r2 = <span class="number">10</span>;</span><br><span class="line">s2 = <span class="number">4</span>*<span class="built_in">pi</span>*r2^<span class="number">2</span>;</span><br><span class="line"><span class="comment">% 2.4 (c)</span></span><br><span class="line">r3 = <span class="number">2</span>;</span><br><span class="line">s3 = <span class="number">4</span>/<span class="number">3</span>*<span class="built_in">pi</span>*r3^<span class="number">3</span>;</span><br><span class="line">ans2_4 = [s1,s2,s3]</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.7</span></span><br><span class="line">P = <span class="number">220</span>;</span><br><span class="line">n = <span class="number">2</span>;</span><br><span class="line">V = <span class="number">1</span>;</span><br><span class="line">a = <span class="number">5.536</span>;</span><br><span class="line">b = <span class="number">0.03049</span>;</span><br><span class="line">R = <span class="number">0.08314472</span>;</span><br><span class="line">T1 = P*V/(n*R);</span><br><span class="line">T2 = (P+n^<span class="number">2</span>*a/V^<span class="number">2</span>)*(V-n*b)/(n*R);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.11 (a)</span></span><br><span class="line">ft = <span class="number">0</span> : <span class="number">1</span> : <span class="number">10</span>;</span><br><span class="line">m = <span class="number">0.3048</span> * ft;</span><br><span class="line">ans2_11a=[ft', m']</span><br><span class="line"><span class="comment">% 2.11 (b)</span></span><br><span class="line">radians = <span class="number">0</span> : <span class="number">0.1</span>*<span class="built_in">pi</span> : <span class="built_in">pi</span>;</span><br><span class="line">degrees = <span class="number">180</span>/<span class="built_in">pi</span>*radians;</span><br><span class="line">ans2_11b = [radians', degrees']</span><br><span class="line"><span class="comment">% 2.11 (c)</span></span><br><span class="line">mih = <span class="built_in">linspace</span>(<span class="number">0</span>, <span class="number">100</span>, <span class="number">15</span>);</span><br><span class="line">fts = <span class="number">0.6818</span>.*mih;</span><br><span class="line">ans2_11c=[mih, fts]</span><br><span class="line"><span class="comment">% 2.11 (d)</span></span><br><span class="line">H_conc = <span class="built_in">linspace</span>(<span class="number">0.001</span>, <span class="number">0.1</span>, <span class="number">10</span>);</span><br><span class="line">PH = -<span class="built_in">log10</span>(H_conc);</span><br><span class="line">ans2_11d = [H_conc', PH']</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.15 (a)</span></span><br><span class="line">n = <span class="number">2</span>;</span><br><span class="line">V = <span class="number">11</span>;</span><br><span class="line">a = <span class="number">5.536</span>;</span><br><span class="line">b = <span class="number">0.03049</span>;</span><br><span class="line">R = <span class="number">0.08314472</span>;</span><br><span class="line">P = <span class="built_in">linspace</span>(<span class="number">0</span>, <span class="number">400</span>, <span class="number">10</span>);</span><br><span class="line">T11 = P*V/(n*R);</span><br><span class="line">T22 = (P+n^<span class="number">2</span>*a/V^<span class="number">2</span>)*(V-n*b)/(n*R);</span><br><span class="line">ans2_15a= T22</span><br><span class="line"><span class="comment">% 2.15 (b)</span></span><br><span class="line">n = <span class="number">2</span>;</span><br><span class="line">V = <span class="built_in">linspace</span>(<span class="number">0.11</span>, <span class="number">101</span>, <span class="number">10</span>);</span><br><span class="line">a = <span class="number">5.536</span>;</span><br><span class="line">b = <span class="number">0.03049</span>;</span><br><span class="line">R = <span class="number">0.08314472</span>;</span><br><span class="line">P = <span class="number">220</span>;</span><br><span class="line">T111 = P*V/(n*R);</span><br><span class="line">T222 = (P+n^<span class="number">2</span>*a./V.^<span class="number">2</span>).*(V-n*b)/(n*R);</span><br><span class="line">ans2_15b= T222</span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.16</span></span><br><span class="line">a = [<span class="number">-1</span>/<span class="number">3</span>, <span class="number">0</span>, <span class="number">1</span>/<span class="number">3</span>, <span class="number">2</span>/<span class="number">3</span>];</span><br><span class="line">format short</span><br><span class="line">format long</span><br><span class="line">format bank</span><br><span class="line">format short e</span><br><span class="line">format long e</span><br><span class="line">format short eng</span><br><span class="line">format long eng</span><br><span class="line">format short g</span><br><span class="line">format long g</span><br><span class="line">format +</span><br><span class="line">format <span class="built_in">rat</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">% 2.17 (a)</span></span><br><span class="line">radians = <span class="number">0</span> : <span class="number">0.1</span>*<span class="built_in">pi</span> : <span class="built_in">pi</span>;</span><br><span class="line">degrees = radians * <span class="number">180</span>/<span class="built_in">pi</span>;</span><br><span class="line">ans2_17 = [degrees', radians']</span><br><span class="line"><span class="comment">% 2.17 (b)</span></span><br><span class="line">save degrees.dat -ascii ans2_17;</span><br><span class="line"><span class="comment">% 2.17 (c)</span></span><br><span class="line">clear</span><br><span class="line">load degrees.dat</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.1</span></span><br><span class="line">a1 = <span class="built_in">nthroot</span> (<span class="number">-5</span>, <span class="number">3</span>);</span><br><span class="line">a2 = (<span class="number">-5</span>)^(<span class="number">1</span>/<span class="number">3</span>);</span><br><span class="line">a3 = a1^<span class="number">3</span>;</span><br><span class="line">a4 = a2^<span class="number">3</span>;</span><br><span class="line">ans3_1 = [a1 a2 a3 a4]</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.2</span></span><br><span class="line">b = <span class="number">1</span>:<span class="number">1</span>:<span class="number">10</span>;</span><br><span class="line">logb10 = <span class="built_in">log</span>(<span class="number">10</span>)./<span class="built_in">log</span>(b);</span><br><span class="line">ans3_2=logb10</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.4</span></span><br><span class="line">Q = <span class="number">8000</span>;</span><br><span class="line">R = <span class="number">1.987</span>;</span><br><span class="line">k0 = <span class="number">1200</span>;</span><br><span class="line">T = <span class="number">100</span>:<span class="number">50</span>:<span class="number">500</span>;</span><br><span class="line">k = k0*<span class="built_in">exp</span>(-Q./(R.*T));</span><br><span class="line">ans3_4 = [T', k']</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3. 8</span></span><br><span class="line">ans3_8 = <span class="built_in">factorial</span>(<span class="number">52</span>)/(<span class="built_in">factorial</span>(<span class="number">52</span><span class="number">-5</span>)*<span class="built_in">factorial</span>(<span class="number">5</span>))</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.9</span></span><br><span class="line">ans3_9 = <span class="built_in">length</span>(<span class="built_in">primes</span>(<span class="number">20000</span>))-<span class="built_in">length</span>(<span class="built_in">primes</span>(<span class="number">10000</span>))</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.10</span></span><br><span class="line">rad = [<span class="number">0</span>:<span class="number">0.1</span>:<span class="number">2</span>*<span class="built_in">pi</span>];</span><br><span class="line">deg =rad*<span class="number">180</span>/<span class="built_in">pi</span>;</span><br><span class="line">ans3_10 = [deg', <span class="built_in">sin</span>(rad)', <span class="built_in">cos</span>(rad)', <span class="built_in">tan</span>(rad)']</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.13</span></span><br><span class="line">d = <span class="number">120</span>;</span><br><span class="line">hmax = d*<span class="built_in">tand</span>(<span class="number">33</span>);</span><br><span class="line">hmin = d*<span class="built_in">tand</span>(<span class="number">27</span>);</span><br><span class="line">ans3_13 = [hmax, hmin]</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.14(a)</span></span><br><span class="line">h=<span class="number">200</span>;</span><br><span class="line">d=<span class="number">20</span>;</span><br><span class="line">ans3_14a = <span class="built_in">atan</span>(h/d)*<span class="number">180</span>/<span class="built_in">pi</span></span><br><span class="line"><span class="comment">% 3.14(b)</span></span><br><span class="line">ans3_14b = <span class="built_in">sqrt</span>(d^<span class="number">2</span>+h^<span class="number">2</span>)</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.15(a)</span></span><br><span class="line">R = [<span class="number">84.3</span> <span class="number">86.4</span> <span class="number">85.2</span> <span class="number">87.1</span> <span class="number">83.5</span> <span class="number">84.8</span> <span class="number">85.0</span> <span class="number">85.3</span> <span class="number">85.3</span> <span class="number">85.2</span> <span class="number">82.3</span> <span class="number">84.7</span> <span class="number">83.6</span>;</span><br><span class="line">      <span class="number">90.0</span> <span class="number">89.5</span> <span class="number">88.6</span> <span class="number">88.9</span> <span class="number">88.9</span> <span class="number">90.4</span> <span class="number">89.3</span> <span class="number">89.5</span> <span class="number">88.9</span> <span class="number">89.1</span> <span class="number">89.5</span> <span class="number">89.4</span> <span class="number">89.8</span>; </span><br><span class="line">      <span class="number">86.7</span> <span class="number">87.6</span> <span class="number">88.3</span> <span class="number">85.3</span> <span class="number">80.3</span> <span class="number">82.4</span> <span class="number">83.4</span> <span class="number">85.4</span> <span class="number">86.3</span> <span class="number">85.3</span> <span class="number">89.0</span> <span class="number">87.3</span> <span class="number">87.2</span>]';</span><br><span class="line">ans3_15a = <span class="built_in">max</span>(R)</span><br><span class="line"><span class="comment">% 3.15(b)</span></span><br><span class="line">ans3_15b = <span class="built_in">min</span>(R)</span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.17</span></span><br><span class="line">G = [<span class="number">68</span>, <span class="number">83</span>, <span class="number">61</span>, <span class="number">70</span>, <span class="number">75</span>, <span class="number">82</span>, <span class="number">57</span>, <span class="number">5</span>, <span class="number">76</span>, <span class="number">85</span>, <span class="number">62</span>, <span class="number">71</span>, <span class="number">96</span>, <span class="number">78</span>, <span class="number">76</span>, <span class="number">68</span>, <span class="number">72</span>, <span class="number">75</span>, <span class="number">83</span>, <span class="number">93</span>];</span><br><span class="line">ans3_17=[<span class="built_in">mean</span>(G), median(G), mode(G), std(G)]</span><br><span class="line">G1=<span class="built_in">sort</span>(G);</span><br><span class="line"></span><br><span class="line"><span class="comment">%3 .18</span></span><br><span class="line">X = <span class="built_in">randn</span>(<span class="number">1</span>,<span class="number">10000</span>)*<span class="number">23.5</span> + <span class="number">80</span> ;</span><br><span class="line">ans3_18=[<span class="built_in">mean</span>(X),std(X)]  </span><br><span class="line"></span><br><span class="line"><span class="comment">% 3.20(a)</span></span><br><span class="line">ans3_20a = <span class="built_in">ceil</span>(<span class="built_in">rand</span>(<span class="number">1</span>)*<span class="number">6</span>)</span><br><span class="line"><span class="comment">% 3.20(b)</span></span><br><span class="line">ans3_20b = <span class="built_in">ceil</span>(<span class="built_in">rand</span>(<span class="number">1</span>,<span class="number">2</span>)*<span class="number">6</span>)</span><br></pre></td></tr></table></figure>
<h4 id="ensp-【实验结果】"><a href="#ensp-【实验结果】" class="headerlink" title="&ensp;【实验结果】"></a>&ensp;<font face="Microsoft JhengHei">【实验结果】</font></h4><ul>
<li>运行结果</li>
</ul>
<p><img src="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/1.png" alt="1"></p>
<p><img src="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/2.png" alt="2"></p>
<p><img src="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/3.png" alt="3"></p>
<p><img src="https://raw.githubusercontent.com/gYANnnnn/AHU/master/lab_report/MATLAB/%E5%AE%9E%E9%AA%8C%E4%BA%8C/picture/4.png" alt="4"></p>
<h4 id="ensp-【数据分析及处理】"><a href="#ensp-【数据分析及处理】" class="headerlink" title="&ensp;【数据分析及处理】"></a>&ensp;<font face="Microsoft JhengHei">【数据分析及处理】</font></h4><h4 id="ensp-【总结或讨论】"><a href="#ensp-【总结或讨论】" class="headerlink" title="&ensp;【总结或讨论】"></a>&ensp;<font face="Microsoft JhengHei">【总结或讨论】</font></h4>
      
    </div>
    
    
    

<div>
  
    <div>  <div style="text-align:center;color: #555;font-size:14px;">-------------The End-------------</div>  </div>

  
</div>

<div>
      
         <div class="my_post_copyright"> <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script> <!-- JS库 sweetalert 可修改路径 --> <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <p><span>本文标题:</span><a href="/blog/blog/3a97/">MATLAB实验报告（二）</a></p> <p><span>文章作者:</span><a href="/" title="访问 耿严 的个人博客">耿严</a></p> <p><span>发布时间:</span>2018年12月04日 - 18:12</p> <p><span>最后更新:</span>2019年03月06日 - 12:03</p> <p><span>原始链接:</span><a href="/blog/blog/3a97/" title="MATLAB实验报告（二）">https://erhuoyan.gitee.io/blog/blog/3a97/</a> <span class="copy-path" title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://erhuoyan.gitee.io/blog/blog/3a97/" aria-label="复制成功！"></i></span> </p> <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p> </div> <script> var clipboard = new Clipboard('.fa-clipboard'); $(".fa-clipboard").click(function(){ clipboard.on('success', function(){ swal({ title: "", text: '复制成功', icon: "success", showConfirmButton: true }); }); }); </script> 

      
</div>

    
      <div>
        <div id="wechat_subscriber" style="display: block; padding: 10px 0; margin: 20px auto; width: 100%; text-align: center">
    <img id="wechat_subscriber_qcode" src="/uploads/qrcode_for_gh_cf4b7b7f445a_430.jpg" alt="耿严 wechat" style="width: 200px; max-width: 100%;">
    <div>欢迎您扫一扫上面的微信公众号，订阅我的博客</div>
</div>

      </div>
    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechatpay.jpg" alt="耿严 微信支付">
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/alipay.jpg" alt="耿严 支付宝">
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog/tags/MATLAB/" rel="tag"><i class="fa fa-tag"></i> MATLAB</a>
          
        </div>
      

      
      
        <div class="post-widgets">
        
          <div class="wp_rating">
            <div id="wpac-rating"></div>
          </div>
        

        

        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog/blog/bd7b/" rel="next" title="hexo+github搭建博客（二）">
                <i class="fa fa-chevron-left"></i> hexo+github搭建博客（二）
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog/blog/658e/" rel="prev" title="Diary-20181205">
                Diary-20181205 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
        <!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_inline_share_toolbox">
  <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5bfe60f3b5b5d5ce" async="async"></script>
</div>

      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC80MTMzMi8xNzg3OQ=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/blog/images/backgroung.jpg" alt="耿严">
            
              <p class="site-author-name" itemprop="name">耿严</p>
              <p class="site-description motion-element" itemprop="description">已有之事后必再有，已行之事后必再行。</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">17</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog/categories/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blog/tags/index.html">
                  <span class="site-state-item-count">25</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/blog/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/erhuoyan" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://blog.csdn.net/qq_33520219" target="_blank" title="CSDN">
                      
                        <i class="fa fa-fw fa-rotate-right"></i>CSDN</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://gitee.com/erhuoyan" target="_blank" title="gitee">
                      
                        <i class="fa fa-fw fa-copyright"></i>gitee</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://weibo.com/u/6018509665/home?leftnav=1" target="_blank" title="微博">
                      
                        <i class="fa fa-fw fa-weibo"></i>微博</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://i.loli.net/2018/12/11/5c0f3d8415cba.png" target="_blank" title="QQ">
                      
                        <i class="fa fa-fw fa-qq"></i>QQ</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://i.loli.net/2018/12/11/5c0f3c7adebe1.png" target="_blank" title="微信">
                      
                        <i class="fa fa-fw fa-weixin"></i>微信</a>
                  </span>
                
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-inline">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                Links
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.yilan.io" title="一览" target="_blank">一览</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.eksecorp.com/" title="忆苦思甜(翻译国外文章)" target="_blank">忆苦思甜(翻译国外文章)</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.ruanyifeng.com/" title="阮一峰blog" target="_blank">阮一峰blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.ireadweek.com" title="周读" target="_blank">周读</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.shuwu.mobi" title="我的小书屋" target="_blank">我的小书屋</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.bilibili.com/" title="B站" target="_blank">B站</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://juejin.im/" title="掘金" target="_blank">掘金</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://maxiang.io" title="马克飞象" target="_blank">马克飞象</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://bookist.cc/" title="书大师" target="_blank">书大师</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://sm.ms/" title="SM.MS(图床)" target="_blank">SM.MS(图床)</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.jianshu.com/u/4312c933b9db" title="极客江南(web)" target="_blank">极客江南(web)</a>
                  </li>
                
              </ul>
            </div>
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#安徽大学电气工程及自动化学院本科实验报告"><span class="nav-number">1.</span> <span class="nav-text">安徽大学电气工程及自动化学院本科实验报告</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【课程名称】-emsp-Matlab程序设计-emsp-emsp-emsp-emsp"><span class="nav-number">1.1.</span> <span class="nav-text"> 【课程名称】 Matlab程序设计    </span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【课程目标】-（依据教学大纲）"><span class="nav-number">1.2.</span> <span class="nav-text"> 【课程目标】 （依据教学大纲）</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【实验名称】-emsp-Matlab环境和函数-emsp-emsp-emsp-emsp"><span class="nav-number">1.3.</span> <span class="nav-text"> 【实验名称】 Matlab环境和函数    </span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【实验目的】"><span class="nav-number">1.4.</span> <span class="nav-text"> 【实验目的】</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【实验原理及方法】"><span class="nav-number">1.5.</span> <span class="nav-text"> 【实验原理及方法】</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【实验内容及过程】"><span class="nav-number">1.6.</span> <span class="nav-text"> 【实验内容及过程】</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【实验结果】"><span class="nav-number">1.7.</span> <span class="nav-text"> 【实验结果】</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【数据分析及处理】"><span class="nav-number">1.8.</span> <span class="nav-text"> 【数据分析及处理】</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ensp-【总结或讨论】"><span class="nav-number">1.9.</span> <span class="nav-text"> 【总结或讨论】</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

<div id="music163player">
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=285100&auto=1&height=66"></iframe>
  </div>


      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2018 &mdash; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-snowflake-o"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">耿严</span>

  
</div>

<!--

  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>




  <span class="post-meta-divider">|</span>

-->


  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Mist</a> v5.1.4</div>






  <span class="post-meta-divider">|</span>



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">博客全站共18.5k字</span>
</div>


        
<div class="busuanzi-count">
  <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      本站访客数
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      人次
    </span>
  

  
    <span class="site-pv">
      本站总访问量
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      次
    </span>
  
</div>








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/fastclick/1.0.6/fastclick.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.lazyload/1.9.3/jquery.lazyload.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.ui.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.pack.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  





  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
  <script>AV.initialize("GRTjOhQCLhVF3AMYXzAz9Y9v-gzGzoHsz", "NyiBhoCVvKPkazVBtlL0kKq1");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <script type="text/javascript">
  wpac_init = window.wpac_init || [];
  wpac_init.push({widget: 'Rating', id: 15247,
    el: 'wpac-rating',
    color: 'fc6423'
  });
  (function() {
    if ('WIDGETPACK_LOADED' in window) return;
    WIDGETPACK_LOADED = true;
    var mc = document.createElement('script');
    mc.type = 'text/javascript';
    mc.async = true;
    mc.src = '//embed.widgetpack.com/widget.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(mc, s.nextSibling);
  })();
  </script>


  

  

  

   
      <canvas class="fireworks" style="position: fixed;left: 0;top: 0;z-index: 1; pointer-events: none;"></canvas> 
      <script type="text/javascript" src="//cdn.bootcss.com/animejs/2.2.0/anime.min.js"></script> 
      <!--<script type="text/javascript" src="/js/src/fireworks.js"></script>-->
      <!-- 页面点击小红心 -->
      <script type="text/javascript" src="/js/src/love.js"></script>

<script src="/blog/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"model":{"jsonPath":"/blog/live2dw/assets/wanko.model.json"},"display":{"position":"right","width":100,"height":200},"mobile":{"show":true},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
